package com.kx.yooli.kx.wechat.po.wx;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

/**
 * @author john_sqwen-childe.wen
 * date 2024/6/5
 * PROJECT_NAME wechat
 * description create ImageMessage by john_sqwen
 * and  value is
 */
@XStreamAlias("xml")
public class ImageMessage extends BaseMessage{
    private final Logger log = LoggerFactory.getLogger(ImageMessage.class);
    @XStreamAlias("Image")
    private Image image;

    public ImageMessage(Map<String,String> requestMap, Image image){
        super(requestMap);
        this.setMsgType("image");
        this.image=image;
    }
    public ImageMessage(){
    }
    public ImageMessage(Image image){
        this.image=image;
    }

    public Image getImage() {
        return image;
    }

    public void setImage(Image image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return "ImageMessage{" +
                "image=" + image +
                '}';
    }
}
